#pragma once
#include "Date.h"

enum CARD_STATUS
{
    CS_NORMAL, CS_LOCK_TMP, CS_LOCK
};

class CCard
{
private:
    char sCardID[18];
    char sAccountID[20];
    char sPIN[8];
    CDate dDateCreate;
    CDate dDateActive;
    CDate dDateLock;
    int nCardStatus;

public:
    CCard(void);
    ~CCard(void);

    char* GetCardID();
    void SetCardID(char* sCardID);
    
    char* GetAccountID();
    void SetAccountID(char* sAccountID);

    char* GetPin();
    void SetPin(char* sPIN);

    CDate GetDateCreate();
    void SetDateCreate(CDate dDateCreate);

    CDate GetDateActive();
    void SetDateActive(CDate dDateActive);

    CDate GetDateLock();
    void SetDateLock(CDate dDateLock);
    
    int GetCardStatus();
    void SetCardStatus(int nCardStatus);
};
